package com.laght.jdkdemo.jdk21demo.scopedvalue;

public class ScopedValueService {
    public static void getData(){
        try {
            Thread.sleep(1000);
        } catch (InterruptedException e) {
            throw new RuntimeException(e);
        }
        System.out.println(ScopedValueDTO.scopedValue.get());
    }

    public void getDataB(){
        System.out.println(ScopedValueDTO.scopedValue.get());
    }

}
